$(document).ready(function() {
    var productId = new URLSearchParams(window.location.search).get('id');
    axios.get(`/productDetail`, { params: { id: productId } })
        .then(function(response) {
            var product = response.data;
            // 渲染商品详情到页面
        });
});
